package com.moneywelcome.investfacade.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data

@ApiModel("黄金申购信息")
public class SubscribeVo {
    @NotNull(message = "申购份额不能为空")
    @Min(value = 1,message = "最小申购1份")
    @ApiModelProperty(value = "申购金额",required = true)
    private Double buyCharge;
    @NotNull(message = "黄金id不能为空")
    @ApiModelProperty(value = "黄金id",required = true)
    private Integer goldId;
//    @NotNull(message = "黄金id不能为空")
//    @ApiModelProperty(value = "用户id",required = true)
//    private Integer userId;
    @NotNull
    @ApiModelProperty(value = "购买账号",required = true)
    private Long buyAccount;
//    @ApiModelProperty(value = "持仓id",required = true)
//    @NotNull
//    private Long financialId;
}
